import requests


class Index():
    url = "http://127.0.0.1:8080"


    # 获取登录用户信息

    def getUserInfo(self,token):
        author = {"Authorization":"Bearer "+token}
        resp = requests.get(self.url+"/yhoa/getInfo",headers=author)
        return resp

    # 获取用户路由信息
    def getUserRoute(self,token):
        author = {"Authorization":"Bearer "+token}
        resp = requests.get(self.url+"/yhoa/getRouters",headers=author)
        return resp
